package com.example.a02back.service;

import com.example.a02back.dto.TopicListDetail;
import com.example.a02back.entity.Topic;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.a02back.entity.Trade;
import io.swagger.models.auth.In;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author SimpChaos
 * @since 2022-07-02
 */
public interface ITopicService extends IService<Topic> {

    String publish(String topicId,String uid, String headline, String content, String date, Integer activeValue,String actionAddress,String actionPosition);
    List<TopicListDetail> getFavTopicList(List<String> list);

    List<TopicListDetail> getMyTopic(String uid);

    String update(String topicId,String headline,String content,String time,Integer activeValue,String actionAddress,String actionPosition);
    String delete(String topicId);
    String updateImg(MultipartFile file,Integer number,String uid,String topicId) throws IOException;
    List<Topic> searchByKeyword(String keyword);
}
